//
//  Night.m
//  PTravel
//
//  Created by dllo on 15/11/30.
//  Copyright © 2015年 李涵. All rights reserved.
//

#import "Night.h"

@implementation Night

+ (UIColor *)cellColor
{
    NSString *str = [[NSUserDefaults standardUserDefaults] objectForKey:@"states"];
    if ([str isEqualToString:@"0"]) {
        return [UIColor whiteColor];
    }else{
        return [UIColor colorWithWhite:0.251 alpha:1.000];
    }
    
}
+ (UIColor *)bgColor
{
    NSString *str = [[NSUserDefaults standardUserDefaults] objectForKey:@"states"];
    if ([str isEqualToString:@"0"]) {
        return  [UIColor colorWithWhite:0.902 alpha:1.000];
    }else{
        return [UIColor colorWithWhite:0.251 alpha:1.000];
    }
}

+ (UIColor *)textColor
{
    NSString *str = [[NSUserDefaults standardUserDefaults] objectForKey:@"states"];
    if ([str isEqualToString:@"0"]) {
        return [UIColor blackColor];
    }else{
        return [UIColor whiteColor];
    }
}
+ (UIColor *)barColor
{
    NSString *str = [[NSUserDefaults standardUserDefaults] objectForKey:@"states"];
    if ([str isEqualToString:@"0"]) {
        return [UIColor colorWithRed:0.309 green:0.573 blue:0.728 alpha:1.000];
    }else{
        return [UIColor colorWithWhite:0.251 alpha:1.000];
    }
}

@end
